package com.ykq.dao;

import com.ykq.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.ykq.entity.Permission
 */
public interface PermissionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    //根据用户查询该用户具有的菜单
    List<Permission> selectByEmpId(Long empId);

    List<Permission> selectAll();


    List<Long> selectPidByRoleId(Integer roleId);

    int deleteByRoleId(Integer rid);

    int batchInsert(@Param("rid") Integer rid, @Param("checkIds") Long[] checkIds);
}




